﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200112F RID: 4399
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SetAssistScRsp : IMessage<SetAssistScRsp>, IMessage, IEquatable<SetAssistScRsp>, IDeepCloneable<SetAssistScRsp>, IBufferMessage
	{
		// Token: 0x170037B9 RID: 14265
		// (get) Token: 0x0600C4E4 RID: 50404 RVA: 0x0021432C File Offset: 0x0021252C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SetAssistScRsp> Parser
		{
			get
			{
				return SetAssistScRsp._parser;
			}
		}

		// Token: 0x170037BA RID: 14266
		// (get) Token: 0x0600C4E5 RID: 50405 RVA: 0x00214333 File Offset: 0x00212533
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SetAssistScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170037BB RID: 14267
		// (get) Token: 0x0600C4E6 RID: 50406 RVA: 0x00214345 File Offset: 0x00212545
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SetAssistScRsp.Descriptor;
			}
		}

		// Token: 0x0600C4E7 RID: 50407 RVA: 0x0021434C File Offset: 0x0021254C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetAssistScRsp()
		{
		}

		// Token: 0x0600C4E8 RID: 50408 RVA: 0x00214354 File Offset: 0x00212554
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetAssistScRsp(SetAssistScRsp other) : this()
		{
			this.avatarId_ = other.avatarId_;
			this.retcode_ = other.retcode_;
			this.uid_ = other.uid_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C4E9 RID: 50409 RVA: 0x00214391 File Offset: 0x00212591
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetAssistScRsp Clone()
		{
			return new SetAssistScRsp(this);
		}

		// Token: 0x170037BC RID: 14268
		// (get) Token: 0x0600C4EA RID: 50410 RVA: 0x00214399 File Offset: 0x00212599
		// (set) Token: 0x0600C4EB RID: 50411 RVA: 0x002143A1 File Offset: 0x002125A1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AvatarId
		{
			get
			{
				return this.avatarId_;
			}
			set
			{
				this.avatarId_ = value;
			}
		}

		// Token: 0x170037BD RID: 14269
		// (get) Token: 0x0600C4EC RID: 50412 RVA: 0x002143AA File Offset: 0x002125AA
		// (set) Token: 0x0600C4ED RID: 50413 RVA: 0x002143B2 File Offset: 0x002125B2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170037BE RID: 14270
		// (get) Token: 0x0600C4EE RID: 50414 RVA: 0x002143BB File Offset: 0x002125BB
		// (set) Token: 0x0600C4EF RID: 50415 RVA: 0x002143C3 File Offset: 0x002125C3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Uid
		{
			get
			{
				return this.uid_;
			}
			set
			{
				this.uid_ = value;
			}
		}

		// Token: 0x0600C4F0 RID: 50416 RVA: 0x002143CC File Offset: 0x002125CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SetAssistScRsp);
		}

		// Token: 0x0600C4F1 RID: 50417 RVA: 0x002143DC File Offset: 0x002125DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SetAssistScRsp other)
		{
			return other != null && (other == this || (this.AvatarId == other.AvatarId && this.Retcode == other.Retcode && this.Uid == other.Uid && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C4F2 RID: 50418 RVA: 0x00214438 File Offset: 0x00212638
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AvatarId != 0U)
			{
				num ^= this.AvatarId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.Uid != 0U)
			{
				num ^= this.Uid.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C4F3 RID: 50419 RVA: 0x002144A9 File Offset: 0x002126A9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C4F4 RID: 50420 RVA: 0x002144B1 File Offset: 0x002126B1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C4F5 RID: 50421 RVA: 0x002144BC File Offset: 0x002126BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Uid != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.Uid);
			}
			if (this.AvatarId != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.AvatarId);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C4F6 RID: 50422 RVA: 0x00214530 File Offset: 0x00212730
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AvatarId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AvatarId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.Uid != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Uid);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C4F7 RID: 50423 RVA: 0x002145A0 File Offset: 0x002127A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SetAssistScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AvatarId != 0U)
			{
				this.AvatarId = other.AvatarId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.Uid != 0U)
			{
				this.Uid = other.Uid;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C4F8 RID: 50424 RVA: 0x00214604 File Offset: 0x00212804
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C4F9 RID: 50425 RVA: 0x00214610 File Offset: 0x00212810
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 24U)
					{
						if (num != 40U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.Retcode = input.ReadUInt32();
						}
					}
					else
					{
						this.AvatarId = input.ReadUInt32();
					}
				}
				else
				{
					this.Uid = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04004F5F RID: 20319
		private static readonly MessageParser<SetAssistScRsp> _parser = new MessageParser<SetAssistScRsp>(() => new SetAssistScRsp());

		// Token: 0x04004F60 RID: 20320
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004F61 RID: 20321
		public const int AvatarIdFieldNumber = 3;

		// Token: 0x04004F62 RID: 20322
		private uint avatarId_;

		// Token: 0x04004F63 RID: 20323
		public const int RetcodeFieldNumber = 5;

		// Token: 0x04004F64 RID: 20324
		private uint retcode_;

		// Token: 0x04004F65 RID: 20325
		public const int UidFieldNumber = 1;

		// Token: 0x04004F66 RID: 20326
		private uint uid_;
	}
}
